# Dockerfile
FROM python:3.10-slim

WORKDIR /app

# 安装依赖
RUN pip install Flask Werkzeug

# 创建目录
RUN mkdir -p /app/files/uploads /app/files/tmp

# 复制文件
COPY app.py /app/
COPY templates /app/templates/

# 设置环境变量
ENV APP_SECRET=adasdasdweqeqweqaa
ENV FLASK_APP=app.py

EXPOSE 8000
CMD ["flask", "run", "--host=0.0.0.0", "--port=8000"]
